#ifndef __W32_UART_H__
#define __W32_UART_H__


/*** Public Header File ***/
#include "main.h"


/*** DEFINE ***/


/*** STRUCT ***/

typedef struct CC_Dev_Win32_Uart tDevUart;

#define CFG_WIN32_UART 	
#ifdef CFG_WIN32_UART
extern int Serial_CheckAndListPort(uint16_t BufSz,uint8_t* pBuf);

extern int Win32_Comm_Init(uint8_t COM_Num, int BaudRate);
extern int Win32_Comm_Close(void);
extern int Win32_Comm_SendPkg(uint32_t PkgLen,uint8_t* pPkg);
extern int Win32_Comm_GetPkg(uint32_t PkgLen,uint8_t* pPkg);

extern int Win32_Dbg_Init(uint8_t COM_Num, int BaudRate);
extern int Win32_Dbg_Close(void);
extern int Win32_Dbg_SendPkg(uint32_t PkgLen,uint8_t* pPkg);
extern int Win32_Dbg_GetPkg(uint32_t PkgLen,uint8_t* pPkg);

#endif

enum{ // 用于添加 多个串口设备
	UART_ID_START = 0,
	UART_ID_DBG,
	UART_ID_COMM,
	UART_ID_BLE,
	
	UART_ID_NUM,
};

/* #ifdef CFG_WIN32_UART

#define DEV_UART_DBG 		0x01
#define DEV_UART_COMM 		0x02

extern int Win32_CharDrv_Init(uint8_t ID,uint8_t COM_Num, int BaudRate);
extern int Win32_CharDrv_SendPkg(uint8_t ID,uint32_t PkgLen,uint8_t* pPkg);
extern int Win32_CharDrv_GetPkg(uint8_t ID,uint32_t PkgLen,uint8_t* pPkg);

#endif  */

#endif
